<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="keywords" content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">
    <!--file upload-->
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/bootstrap-fileupload.min.css" />
    <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/bootstrap-fileinput/4.4.2/css/fileinput.min.css " />
    <link href="/Public/Admin/css/style.css" rel="stylesheet">
    <link href="/Public/Admin/css/index.css" rel="stylesheet">
    <link href="/Public/Admin/css/style-responsive.css" rel="stylesheet">
    <link rel="stylesheet" href="/Public/Admin/css/zyUpload.css" type="text/css">

    <title> 七 彩 </title>
    <!-- ie 9 -->
    <script src="/Public/Admin/js/html5shiv.js"></script>
    <script src="/Public/Admin/js/respond.min.js"></script>
    <script src="/Public/Admin/js/jquery-2.0.3.min.js"></script>
</head>
<body class="sticky-header">
    <div class="left-side sticky-left-side">
    <!--logo and iconic logo start-->
    <div class="logo">
        <a href="index.html"><h4> 全 球 自 由 行 </h4></a>
    </div>

    <div class="logo-icon text-center">
        <a href="index.html"><img src="/Public/Admin/images/logo_icon.png" alt=""></a>
    </div>
    <!--logo and iconic logo end-->

    <div class="left-side-inner">
        <ul class="nav nav-pills nav-stacked custom-nav">
            <li class="<?php if((CONTROLLER_NAME) == "Index"): ?>active<?php endif; ?>">
                <a href="/admin/Index/index.html">
                    <i class="fa fa-home"></i><span>主页数据分析</span>
                </a>
            </li>
            <li class="menu-list <?php if((CONTROLLER_NAME) == "Area"): ?>nav-active<?php endif; ?>"><a href=""><i class="fa fa-laptop"></i> <span>地区管理</span></a>
                <ul class="sub-menu-list">
                    <li class="<?php if((ACTION_NAME) == "index"): ?>active<?php endif; ?>"><a href="/admin/Area/index">地区管理</a></li>
                </ul>
            </li>
            <li class="menu-list <?php if((CONTROLLER_NAME) == "City"): ?>nav-active<?php endif; ?>"><a href=""><i class="fa fa-laptop"></i> <span>城市管理</span></a>
                <ul class="sub-menu-list">
                    <li class="<?php if((ACTION_NAME) == "index"): ?>active<?php endif; ?>"><a href="/admin/City/index">城市管理</a></li>
                </ul>
            </li>

            <li class="menu-list"><a href=""><i class="fa fa-file-text"></i> <span>其他页面管理</span></a>
                <ul class="sub-menu-list">
                    <li><a href="404.html"> 404 错误</a></li>
                    <li><a href="500.html"> 500 错误</a></li>
                </ul>
            </li>
            <li><a href="/admin/Login/index.html"><i class="fa fa-sign-in"></i> <span>登录页面</span></a></li>
        </ul>
        <!--sidebar nav end-->

    </div>
    </div>

    <div class="main-content" >
        <div class="header-section">
            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="/Public/admin/images/photos/user-avatar.png" alt="" />
                            <?php echo ($_SESSION['admin']['username']); ?>
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="/admin/User/renew?account_id=<?php echo ($_SESSION['admin']['account_id']); ?>"><i class="fa fa-user"></i>  个人信息</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i>  设置</a></li>
                            <li><a href="/admin/Login/outlogin"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>

        </div>
            
    <section>
        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                <?php echo ($title['title']); ?>
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">主页</a>
                </li>
                <li class="active"> <?php echo ($title['title']); ?> </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            <?php echo ($title['title']); ?>
                            <span class="tools pull-right">
                                <a href="javascript:;" class="fa fa-chevron-down"></a>
                                <a href="javascript:;" class="fa fa-times"></a>
                             </span>
                        </header>
                        <div class="panel-body">

                            <!-- Modal -->
                            <form action="/Admin/Area/add" method="post" enctype="multipart/form-data">
                                <div class="form-group">
                                    <label>区域名称</label>
                                    <input type="text" class="form-control" name="name"  placeholder="城市名称">
                                </div>

                                <div class="form-group">
                                    <label>是否显示</label>
                                    <br>
                                    <label class="radio-inline" style="padding: 30px;"><input type="radio" name="is_show"  value="1" checked=""> 是</label>
                                    <label class="radio-inline" style="padding: 30px;"><input type="radio" name="is_show"  value="0"> 否</label>

                                </div>


                                <div class="form-group">
                                    <label class="control-label col-md-3">区域图片</label>
                                    <div class="col-md-9">
                                        <div class="fileupload fileupload-new" data-provides="fileupload">
                                            <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">
                                                <img  name="avatar" src="https://wechatpic.7rose.cn/wegw/images/add_img.jpg" alt="" />
                                            </div>
                                            <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 400px; max-height: 300px; line-height: 20px;"></div>
                                            <div>
                                                   <span class="btn btn-default btn-file">
                                                   <span class="fileupload-new"><i class="fa fa-paper-clip"></i>选择图片</span>
                                                   <span class="fileupload-exists"><i class="fa fa-undo"></i> 更换</span>
                                                   <input type="file" name="image" class="default"  />
                                                   </span>
                                                <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload"><i class="fa fa-trash"></i> 取消</a>
                                            </div>
                                        </div>
                                        <br/>
                                    </div>
                                </div>

                                <button type="submit" class="btn btn-default">创建</button>
                            </form>
                            <!-- modal -->

                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->
    </section>

    <script charset="utf-8" src="/Public/Editor/kindeditor.js"></script>
    <!--<script charset="utf-8" src="/Public/Home/js/jquery-form.js"></script>-->
    <script src="/Public/Admin/js/bootstrap-fileupload.min.js"></script>
    <script type="text/javascript">

        KindEditor.ready(function(K) {
            window.editor = K.create('#editor_id');

        });

        KindEditor.options.filterMode = false;

        KindEditor.ready(function(K) {
            K.create('#editor_id');
        });


        var color="1";


    </script>


    <script type="text/javascript" src="/Public/Admin/js/add.js"></script>

        <footer>
            2018 @ <a href="http://www.newdar.org/" target="_blank">七彩玫瑰</a>
        </footer>
        <!--footer section end-->

    </div>
    <!--common-->
</body>



<!--<script src="/Public/Admin/js/jquery-1.10.2.min.js"></script>-->
<script src="/Public/Admin/js/jquery-migrate-1.2.1.min.js"></script>
<script src="/Public/Admin/js/bootstrap.min.js"></script>
<script charset="utf-8" src="https://cdn.bootcss.com/bootstrap-fileinput/4.4.2/js/locales/zh.js"></script>
<script charset="utf-8" src="https://cdn.bootcss.com/bootstrap-fileinput/4.4.2/js/fileinput.min.js "></script>


<script src="/Public/Admin/js/modernizr.min.js"></script>
<script src="/Public/Admin/js/jquery.nicescroll.js"></script>

<script type="text/javascript" src="/Public/Admin/js/ckeditor/ckeditor.js"></script>


<!--common scripts for all pages-->
<script src="/Public/Admin/js/scripts.js"></script>

</html>